package com.example.guestbookmybatis.service;


import com.example.guestbookmybatis.dao.BookMapper;
import com.example.guestbookmybatis.domain.Message;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {

    @Autowired
    private BookMapper bookMapper;

    public void insertmsg(Message message) {
        bookMapper.insertmsg(message);
    }

    public Page<Message> msglist() {
        return bookMapper.msglist();
    }

    public void reply(String replymsg, String bookid) {
        bookMapper.reply(replymsg,bookid);
    }

    public void delmsg(String bookid) {
        bookMapper.delmsg(bookid);
    }
}
